import "babel-polyfill";
import React from 'react';
import ReactDOM from "react-dom";
import { Router, browserHistory,Route,IndexRoute,Redirect,IndexRedirect,hashHistory} from "react-router";
import Tiku from "../component/question/tiku.js";
import TikuAdd from "../component/question/tiku_add";
import Revise from "../component/question/tiku_revise";
import App from "../component/common/layout/app.js";
ReactDOM.render(
    <Router history={browserHistory} >
        <Route path="/question" component={App}>
            <IndexRoute  component={Tiku}/>
            <Route path="add" component={TikuAdd}/>
            <Route path="revise/:id" component={Revise}/>
        </Route>
    </Router>
  , document.getElementById('root')
);
